package hcn.protocol.ods.casehistory;

import hcn.util.validation.ValidationAnnotaion;
import lombok.*;

/**
 * @Author: zhusm@bsoft.com.cn
 *
 * @Description: 收货地址转换
 *
 * @Create: 2019-06-18 10:15
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class RecipientAddressVO {

    @ValidationAnnotaion(minLength =1,maxLength = 18,errorDescription = "姓名格式不正确")
    @ValidationAnnotaion.NotNull(errorDescription = "收件人姓名不能为空")
    private String consigneeName;//收件人姓名
    @ValidationAnnotaion.NotNull(errorDescription = "手机号不能为空")
    @ValidationAnnotaion(minLength =11,maxLength = 18,errorDescription = "手机号不正确")
    private String consigneeTelephone;//收件人手机号
    private String provinceCode;//省ID
    private String cityCode;//市ID
    private String districtCode;//街道ID
    private String streetCode;//区县
    @ValidationAnnotaion.NotNull(errorDescription = "省不能为空")
    private String province;//省
    @ValidationAnnotaion.NotNull(errorDescription = "市不能为空")
    private String city;//市
    @ValidationAnnotaion.NotNull(errorDescription = "区县不能为空")
    private String district;//区县
    private String street;//街道
    private String community;//村|社区
    private String communityCode;//村|社区ID
    private String organize;//村民小组|居民小组
    private String organizeCode;//居民小组ID
    private String detailed;//详细地址
    private String consigneeDetailedAddress;//详细地址  因为端传来了2个不同的详情参数名
    private Integer recipientId;
    private Boolean defaultAddress =false;//是否默认
    private String addTime;//创建时间



}
